home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / WINDOWS / GSF20.ARJ / GSF20.EXE / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-01-19  |  2KB  |  63 lines

  1. @echo off
  2. if (%1)==() goto USAGE
  3. if (%2)==() goto USAGE
  4. if not exist install.bat goto USAGE
  5.  
  6. if not exist gscript.dot goto nofile
  7. if not exist gscript.doc goto nofile
  8. if not exist gsdemo.doc goto nofile
  9. if not exist gscript.hlp goto nofile
  10.  
  11. ECHO Copying GSCRIPT.DOT, GSCRIPT.DOC, GSDEMO.DOC to DOT Path.
  12. COPY GSCRIPT.DOT %2 >Nul
  13. COPY GSCRIPT.DOC %2 >Nul
  14. COPY GSDEMO.DOC %2  >Nul
  15. ECHO Copying GSCRIPT.HLP to word program path.
  16. COPY GSCRIPT.HLP %1 >Nul
  17. Echo.
  18. echo Enter Word for Windows and Open the file %2\GSCRIPT.DOC.
  19. echo This file is the documentation, and also contains a self
  20. echo running demo.
  21. echo.
  22. echo Enjoy.
  23. goto DONE
  24.  
  25. :USAGE
  26. cls
  27. echo.
  28. echo ────────────────────────────────────────────────────────
  29. echo USAGE:   install [word program path] [DOT file path]
  30. echo ────────────────────────────────────────────────────────
  31. echo          Installs GSCRIPT files from the *current* drive or
  32. echo          directory into the specified directories.
  33. echo.
  34. echo          Both the word program path and the DOT file path must
  35. echo          already exist.
  36. echo       ┌┬──────────────────────────────────────────────────────────┐
  37. echo       ││ By default WfW installs into C:\WINWORD and DOT files    │
  38. echo       ││ are also copied to C:\WINWORD.                           │
  39. ECHO       ││ If you are unsure of the program dir, enter FileManager  │
  40. echo       ││ and locate WINWORD.EXE.                                  │
  41. echo       ││ If you are unsure of the Dot-Path, enter FileManager and │
  42. echo       ││ locate NORMAL.DOT (or any other DOT file).               │
  43. echo       └┴──────────────────────────────────────────────────────────┘
  44. echo          Do not append a final backslash on any of the path
  45. echo          designations
  46. echo ─────────────────────────────────────────────────
  47. echo EXAMPLE: install c:\winword c:\winword
  48. echo.
  49. echo          install c:\winword c:\winword\dot
  50. pause
  51. Goto DONE
  52. :NoFile
  53. cls
  54. echo Source file not found
  55. echo.
  56. echo    One or more of the files listed below were not found in the
  57. echo    current directory.
  58. echo.
  59. echo    GSCRIPT.DOT, GSCRIPT.DOC, GSDEMO.DOC, GSCRIPT.HLP.
  60. echo.
  61. pause
  62. :DONE
  63.